<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="org.dzy.Dao.StudentDao"%>
<%@page import="org.dzy.Entity.Course"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<style type="text/css">
.zhuyemians {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	width: 700px;
	height: 100px;
}

.zuo {
	float: left;
}

.you {
	float: right;
}

.shang {
	width: 700px;
	height: 20px;
	border: #000 1px solid;
}

.xia {
	width: 700px;
	height: 300px;
	border: #000 1px solid;
}

.shang1 {
	float: left;
}

.xia1 {
	float: left;
}

.xia2 {
	float: left;
}
</style>
<body>
	<div class="zhuyemians">
		<div class="shang">
			<div class="zuo">欢迎使用选课系统</div>
			<div class="you">
				<a href="chooseCourse.jsp">[继续选课]</a> | <a href="login.jsp">[退出登陆]</a>
			</div>
		</div>
		<div class="xia">
			<div class="shang1">
				你已经选择的课程列表如下:<br />
			</div>
			<div class="xia1">
				<table border="1px">
					<tr>
						<th bgcolor="BBBBBB">课程编号</th>
						<th bgcolor="BBBBBB">课程名称</th>
						<th bgcolor="BBBBBB">授课老师</th>
						<th bgcolor="BBBBBB">学分</th>
						<th bgcolor="BBBBBB">上课时间</th>
						<th bgcolor="BBBBBB">上课时间</th>
						<th bgcolor="BBBBBB">上课地点</th>
					</tr>
					<%
						StudentDao a = new StudentDao();
						Course course = null;
						course = a.queryCourseByid(1);
						StudentDao add = null;
                        a.addRecord("精神小伙", 1); 							
					%>
					<tr>
						<td><%=course.getCourse_id()%></td>
						<td><%=course.getCourse_name()%></td>
						<td><%=course.getTeacher()%></td>
						<td><%=course.getPoint()%></td>
						<td><%=course.getTime_1()%></td>
						<td><%=course.getTime_2()%></td>
						<td><%=course.getLocation()%></td>
					</tr>
				</table>
			</div>
			<div class="xia2">
				您当前选课的学分为:<%=course.getPoint()%>
			</div>
		</div>
	</div>
</body>
</html>